import request from '@/utils/request'
import Axios from 'axios'

export function login(data) {
  // return request({
  //   url: '/vue-element-admin/user/login',
  //   method: 'post',
  //   data
  // })
  axios({
    url: "http://math.zjwas.com/api/v1/user/login/"
  }).then(res => {
    this.banner = res.data.items
    console.log(this.banner);
    console.log(res);

  });
}


export function getInfo(token) {
  return request({
    url: '/vue-element-admin/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
